import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // 智慧牧场智慧屏幕 （牛-红色）
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home')
  },
  // 羊 详情页
  {
    path: '/sheepDetail/:sheep_id/:rfid/:muhuName',
    component: () => import('@/views/sheepDetail'),
    hidden: true,
    meta: {
      requireAuth: true
    }
  }
]

const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router
